package com.xju.subjectsystem.mapper;

import com.xju.subjectsystem.pojo.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMapper {

    int deleteByPrimaryKey(String cno);

    int insert(Course record);


    int insertSelective(Course record);

    Course selectByPrimaryKey(String cno);

    List<Course> selectByName(String cname);

    List<Course> selectByDepart(String depart);

    List<Course> showAllCourse();

    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);
}